import { createStore } from 'vuex'

export default createStore({
  state: {
    isLogin: localStorage.getItem('token') ? true : false,
  },
  getters: {
    getLoginStatus: state => state.isLogin
  },
  mutations: {
    setLoginStatus(state, status) {
      state.isLogin = status
    }
  },
  actions: {
  },
  modules: {
  }
})
